#!/bin/bash
for (( j = 0; j < 1000; j++ ));do
    tmp=`mysql   -h10.222.139.117 -uppauction -pppauctionpass wxd  -e "select fuin from t_wxd_user_openshop${j} where fext1 = 95 " -ss `
for k in $tmp; do
#    echo 'k = '$k
    let db=(${k} %10000)/1000
    echo ${k} >>db_${db}.txt
#    echo 'db = '$db
done
    
done
